﻿#ifndef EDITFINANCESUBJECT_H
#define EDITFINANCESUBJECT_H

#include <QDialog>
#include "financeitem.h"
#include "financeservice.h"

namespace Ui {
class EditFinanceSubject;
}

class EditFinanceSubject : public QDialog
{
    Q_OBJECT

public:
    explicit EditFinanceSubject(QWidget *parent = nullptr);
    ~EditFinanceSubject();

    void setDirectory(QList<QStringList> directory);

    void showWithFinanceItem(FinanceItem *financeItem);
private slots:
    void on_comboBoxPrimaryDirectory_currentIndexChanged(int index);

    void on_pushButtonCancel_clicked();

    void on_pushButtonDelete_clicked();

    void on_pushButtonUpdate_clicked();

private:
    Ui::EditFinanceSubject *ui;

    QList<QStringList> directory;
    FinanceItem *financeItem;
    FinanceService financeService;
};

#endif // EDITFINANCESUBJECT_H
